package com.yongxing.plugin;

import android.annotation.SuppressLint;
import android.app.Activity;
import android.content.res.AssetManager;
import android.content.res.Resources;

/**
 * Created by Mr.J on 2019/8/12.
 * 描述：
 */
@SuppressLint("Registered")
public class BaseActivity extends Activity {


    @Override
    public Resources getResources() {
        return getApplication() == null ? super.getResources() : getApplication().getResources();
    }

    @Override
    public AssetManager getAssets() {
        return getApplication() == null ? super.getAssets() : getApplication().getAssets();
    }
}
